// @ts-ignore
/* eslint-disable */
import request from '@/services/request';

/** 获取配置列表 GET /v1/admin/global-configs/unique */
export async function globalConfigV1AdminControllerShow(options?: { [key: string]: any }) {
  return request<API.GlobalConfigAdminShowResult>('/v1/admin/global-configs/unique', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 修改配置 PATCH /v1/admin/global-configs/unique */
export async function globalConfigV1AdminControllerUpdate(
  body: API.GlobalConfigAdminUpdateDto,
  options?: { [key: string]: any },
) {
  return request<any>('/v1/admin/global-configs/unique', {
    method: 'PATCH',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
